package com.wl.wuliu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wl.wuliu.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: gutaozhen
 * @Date: 2024/5/15
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

    /**
     * 列表查询
     * @param sysUser
     * @return
     */
    List<SysUser> findList(SysUser sysUser);

    /**
     * 查询用户信息
     * @param sysUser
     * @return
     */
    SysUser findSysUser(SysUser sysUser);

    /**
     * 根据openid查询用户信息
     * @param openId
     * @return
     */
    SysUser findSysUserByOpenId(String openId);
}
